
<template>
	<view style="position: relative;">
		<view style="height:460upx;overflow:scroll;">
			<block v-for="(item, index) in selectList" :key="index">
				<view class="row" @tap="changeSelected(item)" :class="selected===item?'sel':''" > 
					{{item}}
				</view>
			</block>
		</view>
	</view>

</template>

<script>
	export default {
		props: {
			selectList: {
				type: Array,
			},
			selected: {
				type: String
			},		
		},
		data() {
			return {
				wifiList:[],
			}
		},
		methods: {
			changeSelected(item) {
				this.$emit("changeSelected", item);
			}
		}
	}
</script>

<style>
	.sel {
		background: #E2F0FC;
	}
	
</style>
